<?php

namespace test;

class TestArrayAccess implements \ArrayAccess
{
    private $data = [
        'title' => 'kaka'
    ];

    public function offsetExists ($key)
    {
        return isset($this->data[$key]);
    }

    public function offsetGet ($key)
    {
        return $this->data[$key];
    }

    public function offsetSet ($key,$value)
    {
        return $this->data[$key] = $value;
    }

    public function offsetUnset ($key)
    {
        unset($this->data[$key]);
    }

}